package kr.hkit.powerjava.chther08;

public class DeskLamp {
	private boolean ison;
	public void turn(){
		this.ison =true;
	}
	public void turnOff() {
		this.ison =false;
	}
	@Override
	public String toString() {
		return "DeskLamp [ison=" + ison + "]";
	}
	public static void main(String[] args) {
		DeskLamp dl =new DeskLamp();
		System.out.println(dl);
		dl.turn();
		System.out.println(dl);
		dl.turnOff();
		System.out.println(dl);
	}
}
